home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 22
/
freelog 22.iso
/
Prog
/
Djgpp
/
GPC2952B.ZIP
/
doc
/
gpc
/
docdemos
/
expdemo.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
2001-02-09
|
242 b
|
9 lines
program ExpDemo;
var
z: Complex;
begin
z := Cmplx (1, - 2 * Pi); { z = 1 - i * 2 pi }
z := Exp (z); { yields e = Exp (1), since Exp ix = Cos (x) + i * Sin(x) }
WriteLn (Ln (Re (z)) : 0 : 5) { prints 1 = Ln (Exp (1)) }
end.